package frog.lazy.framework.keeper.constant;

import java.time.temporal.ChronoUnit;
import java.util.concurrent.TimeUnit;

public class JWTConstant {
    /**
     * 缓存中token 存储
     */
    public static final String REFRESH_JWT = "token:JWT-SESSION-{}";

    /**
     * 刷新过期时间
     */
    public static final Long REFRESH_PERIOD_TIME = 4 * 7 * 24 * 60L;

    /**
     * 刷新过期时间 单位
     */
    public static final TimeUnit REFRESH_PERIOD_TIME_UNIT = TimeUnit.MINUTES;

    /**
     * token 关键字
     */
    public static final String header_token = "authorization";

}
